#pragma once

#include <string>
#include <vector>

namespace utils
{
    static std::wstring LoadString(UINT id)
    {
        const int buffSize = 1024;

        WCHAR buff[buffSize];
        memset( buff, 0, buffSize * sizeof(WCHAR));

        ::LoadString(_AtlBaseModule.GetResourceInstance(), id, buff, buffSize);
        return std::wstring(buff);
    }

    static bool FileExists(const std::wstring& filePath)
    {
        WIN32_FIND_DATA fdata;
        memset((LPVOID)&fdata, 0, sizeof(WIN32_FIND_DATA));

        HANDLE hFind = INVALID_HANDLE_VALUE;

        if ((hFind = ::FindFirstFile(filePath.c_str(), &fdata)) != INVALID_HANDLE_VALUE ) {
            ::FindClose(hFind);
            return true;
        }        

        return false;
    }
}